<?php

run(function(){
    $client = new Client;
    for ($i=0; $i < 1; $i++) { 
        go(function()use($i, $client){
            $result = $client->get('http://ehd4.f3322.net/hi.php');
            $content = $result->getBody()->contents();
            if($content == 1) {
                echo "finished";
            }
        });
    }
});
